QT -= gui
QT += core

CONFIG += c++11 console
CONFIG -= app_bundle

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

DESTDIR = "$$_PRO_FILE_PWD_/distribute"

DEFINES += DEBUG_TEST
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += "$$_PRO_FILE_PWD_/task-thread/"
INCLUDEPATH += "$$_PRO_FILE_PWD_/extern-libs/exosip/include/"
INCLUDEPATH += "$$_PRO_FILE_PWD_/extern-libs/osip/include/"

LIBS += -L"$$_PRO_FILE_PWD_/extern-libs/exosip/lib"
LIBS += -L"$$_PRO_FILE_PWD_/extern-libs/osip/lib"
LIBS += -losipparser2 -losip2 -leXosip2

SOURCES += main.cpp \
    task-thread/task-thread.cpp \
    task-thread/timer-queue.cpp \
    hk-28181-server.cpp \
    sip-server-cfg.cpp \
    sip-server.cpp \
    sip-device-mgr.cpp \
    sip-client.cpp \
    comm-func.cpp \
    osip_message_parse.cpp

HEADERS += \
    extension-base-class.h \
    task-thread/task-queue.h \
    task-thread/task-thread.h \
    task-thread/thread-queue.h \
    task-thread/timer-queue.h \
    hk-28181-server.h \
    sip-server-cfg.h \
    sip-server.h \
    sip-device-mgr.h \
    sip-client.h \
    comm-func.h \
    osip_message_parse.h \
    hk-28181-simple-struct-define.h
